wayland: use g_clear_pointer when destroying cairo surfaces
authorRay Strode <rstrode@redhat.com>
Wed, 3 Feb 2016 01:43:12 +0000 (20:43 -0500)
committerRay Strode <rstrode@redhat.com>
Sat, 6 Feb 2016 13:00:35 +0000 (08:00 -0500)
commit1cfa2f41345d37c6efba30796cedf3817f396b8e
treefad61b89867783e55cbb7ef1a7122f9e11cf9745
parente6f92df57efaae67163c1364e53801c8d9ebee8b
wayland: use g_clear_pointer when destroying cairo surfaces

There are a few places where we destroy a cairo surface and
then nullify it. This commit changes those to use
g_clear_pointer instead.

It also drops a cairo_surface_finish call that is unnecessary

https://bugzilla.gnome.org/show_bug.cgi?id=761312
gdk/wayland/gdkwindow-wayland.c